import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userInfo: null,
    LOADING: false,
    isSubscribe: 1,
    sortChange: 0
  },
  mutations: {
    'SET_USERINFO'(state, data) {
      state.userInfo = data;
    },
    'SHOW_LOADING'(state) {
      state.LOADING = true
    },
    'HIDE_LOADING'(state) {
      state.LOADING = false;
    }
  },
  actions: {

  }
})